package com.lehoon.tomato.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author wang
 * @since 2020-09-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class UserOrderGoods extends Model<UserOrderGoods> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer orderId;

    /**
     * 订单编号
     */
    private String orderCode;

    /**
     * 商品id
     */
    private String goodsSku;

    /**
     * 单个价格
     */
    private BigDecimal unitPrice;

    /**
     * 商品总价
     */
    private BigDecimal price;

    /**
     * 商品个数
     */
    private Integer num;

    private Integer goodsId;

    /**
     * 供应商提供价格
     */
    private BigDecimal supplyPrice;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
